Skip to content

updated examples. - #7

Merged
rob-metalinkage merged 6 commits into
masterfrom
multiple-times-bug-results
Aug 27, 2026
Merged

rob-metalinkage merged 6 commits into
masterfrom
multiple-times-bug-results

Conversation

@rob-metalinkage

Copy link
Copy Markdown
Collaborator

No description provided.

rob-metalinkage and others added 6 commits May 23, 2025 18:03
…ction nesting

Resolves the merge conflicts between multiple-times-bug-results and master:

- featureType.shacl: kept the SPARQL-based guard that stops an
  ObservationCollection hosting a common property from being mistyped as
  an Observation too.
- rules.shacl: kept the permissive "at least one value in the ancestor
  chain" form of SOSA-testRequiredTime/SOSA-testObservedProperty (needed
  for nested collections restating an inherited value), and added
  SOSA-testPhenomenonTimeSingular/SOSA-testResultTimeSingular to close
  the gap this exposed - a single node can no longer carry two
  conflicting time values directly on itself. Verified against master's
  new negative test fixtures with pyshacl directly, since a bug in
  bblocks-postprocess silently drops passing .ttl-only negative tests
  from its own report.
- spec-examples/examples.yaml: merged both branches' additive example
  lists (deduping 5 exact repeats), then reconciled the full set against
  the SOSA-SSN spec repo itself - dropped 27 dead/uncited entries (old
  2017exNN.ttl numbers now living only as rdf/tests/ fixtures, renamed
  files, complex-sensors/*) and added 11 entries genuinely cited in
  current spec chapters but missing from our list. Every example now
  sets base-output-filename to mirror its source file.

Also marks ObservationCollection (properties + features) as highlighted,
alongside the existing Observation pair.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…d example

Merges the substantial SHACL rework done on master since our last merge
(rules.shacl -> shapes.shacl, interval-aware collection property
consistency checks, new collection-*.ttl test fixtures). This supersedes
the SOSA-testPhenomenonTimeSingular/SOSA-testResultTimeSingular shapes
added earlier in this branch - master's testRequiredTime already catches
a single node with two conflicting time values on itself, verified with
pyshacl against the full properties/observation test suite plus our own
prior fixtures.

Conflict resolutions:
- properties/observation/rules.shacl: deleted, keeping master's
  shapes.shacl (verified via pyshacl against every test fixture in both
  branches before accepting).
- properties/observationCollection/examples.yaml: took master's
  simplified collection.json/collection.ttl-based examples, dropped a
  dangling orphaned Turtle fragment left over from an earlier ref
  conversion, and re-added our "nested collections with differing
  observed properties per sub-collection" example - master's new
  examples cover multi-valued properties on a single collection, not
  genuine collection-in-collection nesting.
- spec-examples/examples.yaml: kept our reconciled version entirely.
  Master's side was a stale, pre-reconciliation copy living at a
  different path (_sources/properties/spec-examples/) that predates the
  dedup/base-output-filename/spec-cross-reference work from last
  session; git's rename detection folded it into this same file's
  conflict rather than duplicating the directory.

Also fixes a gap found while validating the merge: shapes.shacl's
testRequiredTime only had sh:targetClass, unlike its sibling shapes
(testResult, testFeatureOfInterest, testObservedPropertyPresent) which
all pair that with sh:targetSubjectsOf sosa:hasResult,
sosa:hasSimpleResult to catch untyped-but-clearly-an-Observation nodes.
Added the matching targetSubjectsOf, which was needed for an existing
test fixture (times-present-fail.jsonld) relying on implicit typing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@rob-metalinkage
rob-metalinkage merged commit de316f8 into master Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants